package com.hongkzh.www.routes;

import com.hongkzh.www.adv.controller.AdvController;
import com.hongkzh.www.adv.controller.CityAdvController;
import com.hongkzh.www.adv.controller.EnterpriseAdvController;
import com.hongkzh.www.adv.controller.MediaAdvController;
import com.hongkzh.www.friend.controller.FriendController;
import com.hongkzh.www.game.controller.GameController;
import com.hongkzh.www.init.controller.InitController;
import com.hongkzh.www.mediaShop.controller.MediaShopController;
import com.hongkzh.www.pay.controller.PayController;
import com.hongkzh.www.recruit.controller.RecruitController;
import com.hongkzh.www.release.controller.ReleaseController;
import com.hongkzh.www.sell.controller.SellController;
import com.hongkzh.www.shop.controller.AccountController;
import com.hongkzh.www.shop.controller.ShopController;
import com.hongkzh.www.user.controller.UserController;
import com.jfinal.config.Routes;

/**
 * @author martins
 */
public class V1Routes extends Routes {
    @Override
    public void config() {
        add("/v1/user", UserController.class);
        add("/v2/user", UserController.class);
        add("/v1/adv", AdvController.class);
        add("/v1/enterpriseAdv", EnterpriseAdvController.class);
        add("/v1/mediaAdv", MediaAdvController.class);
        add("/v1/shop", ShopController.class);
        add("/v1/friend", FriendController.class);
        add("/v1/cityAdv", CityAdvController.class);
        add("/v1/recruit", RecruitController.class);
        add("/v1/init", InitController.class);
        add("/v1/release", ReleaseController.class);
        add("/v1/mediaShop", MediaShopController.class);
        add("/v1/sell",SellController.class);
        add("/v1/game", GameController.class);
        add("/v1/pay", PayController.class);
        add("/v1/account", AccountController.class);
    }
}
